// routes/userRoutes.js
const express = require('express');
const router = express.Router();
const userController = require('../controllers/userController');

// 创建用户的路由
router.post('/create', userController.createUser);

// 删除用户的路由
router.post('/delete', userController.deleteUser);

// 更新用户的路由
router.post('/update', userController.updateUser);

// 获取用户信息的路由
router.post('/login', userController.login);
router.post('/client/login', userController.clientLogin);
router.post('/getAll', userController.getUserAll);
module.exports = router;